<template>
  <div class="game-player-container-2048_main">
    <div class="game-player-container-2048_player">
<!--      <player2048></player2048>-->
      <iframe src="play2048inside.html"></iframe>
    </div>

    <div class="game-player-container-2048_info">
      <h1>2048</h1>
      <span>游戏规则</span>
      <p>每次控制所有方块向同一个方向运动，两个相同数字的方块撞在一起之后合并成为他们的和，每次操作之后会在空白的方格处随机生成一个2或者4，最终得到一个“2048”的方块就算胜利了。如果16个格子全部填满并且相邻的格子都不相同也就是无法移动的话，那么恭喜你，gameover。</p>
      <span>操作指南</span>
      <p>每次可以选择上下左右其中一个方向去滑动，每滑动一次，所有的数字方块都会往滑动的方向靠拢外，系统也会在空白的地方乱数出现一个数字方块，相同数字的方块在靠拢、相撞时会相加。不断的叠加最终拼凑出2048这个数字就算成功。</p>


    </div>
  </div>
</template>

<script>
import Player2048 from "@/components/player2048.vue";

export default {
  name: "gamePlayerContainer2048",
  components: {Player2048}
}
</script>

<style scoped>

.game-player-container-2048_player>iframe{
  width: 100%;
  height: 675px;

}

.game-player-container-2048_info>p{
  text-indent: 2em;
  line-height: 30px;
}

.game-player-container-2048_info>span{
  font-weight: bold;
  line-height: 30px;
}

.game-player-container-2048_info>h1{
  text-align: center;
  font-weight: bold;
  line-height: 50px;
}



.game-player-container-2048_info{
  height: 675px;
  width: 400px;
  float: right;
  background-color: rgba(230,230,230);
  display: inline-block;
  padding: 30px 30px;
  word-break: break-all;
}

.game-player-container-2048_main{
  width: 1200px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  height: 675px;
  margin-top: 20px;
  margin-bottom: 20px;
  overflow: clip;
}

.game-player-container-2048_player{
  height: 675px;
  width: 800px;
  float: left;
  display: inline-block;
  background-color: black;
}

</style>